package com.af.robot.controller;

import com.af.robot.result.ResultEnum;
import com.alibaba.fastjson.JSONObject;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.TimeUnit;

@RestController
@RequestMapping("/live")
public class liveController {


    @CrossOrigin(origins = "*")
    @GetMapping("/isAlive")
    public JSONObject isAlive(){
        return ResultEnum.OK.getResult();
    }
}
